#ifndef FORMATCONVERT_H
#define FORMATCONVERT_H

#ifndef CXCORE_H
#define CXCORE_H
#include "cxcore.h"
#endif

#ifndef HIGHGUI_H
#define HIGHGUI_H
#include "highgui.h"
#endif

#ifndef FSTREAM_H
#define FSTREAM_H
#include <fstream>
#endif

#ifndef CV_H
#define  CV_H
#include "cv.h"
using namespace cv;
#endif

#ifndef IOSTREAM_H
#define IOSTREAM_H
#include <iostream>
using namespace std;
#endif

class FormatConvert{
public:
	static bool YUV420ToRGB888(char *path, Mat &imgRGB);
	static bool YUV420ToRGB888(ifstream &fin, Mat &imgRGB);
	static bool YUV420ToYUV(char *path, Mat &imgYUV);
	static bool YUV420ToYUV(ifstream &fin, Mat &imgYUV);
};
#endif